package project5;

public class Vehicle {
    private String brand;
    private String color;
    private double speed;

    public Vehicle() {
    }

    public Vehicle(String brand, String color) {
        this.brand = brand;
        this.color = color;
        this.speed = 0;
    }

    public String getBrand() {
        return brand;
    }

    public String getColor() {
        return color;
    }

    public double getSpeed() {
        return speed;
    }
    public void run()
    {
        System.out.println("汽车正在奔跑");
    }

}
